package com.wizinno.android.urineflow.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.wizinno.android.urineflow.R;
import com.wizinno.android.urineflow.activity.MainActivity;
import com.wizinno.android.urineflow.constant.FragmentNoConstant;

public class ReportRightFragment extends BaseFragment {

    private ImageView iv_back_home;

    public ReportRightFragment() {
        setNo(FragmentNoConstant.REPORT_RIGHT);
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initData() {

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_report_right, container, false);
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        iv_back_home = view.findViewById(R.id.iv_back_home);
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        MainActivity mainActivity = (MainActivity) getActivity();
        iv_back_home.setOnClickListener(v -> mainActivity.toHome(false));
    }
}